﻿using System;
using GmailAuto.Helpers;

namespace GmailAuto
{
    public class MailBoxPage
    {
        
        public Emails Emails {get { return emails; }}
        public Paginator PageBar {get { return pageBar; }}
        
        public bool IsAt
        { 
            get
            {
                //string title = userElement.WaitUntilVisible().Text;
                //return title.Contains("Входящие");
                throw new NotImplementedException();
            }
        }

        //  Methods
        public NewEmailDialog WriteEmail()
        {
            return navigator.WriteNewEmail();
        }

        public void GoTo(To to)
        {
            navigator.GoTo(to);
        }
        
        //Elements Instances
        private Emails emails = new Emails();
        private Paginator pageBar = new Paginator();
        private Navigator navigator = new Navigator();
    }

    public enum To
    {
        Incoming
        ,Sent
        ,Mark
    }
}